import React, { useEffect } from 'react'
import axios from 'axios'

// created() {
//   this.getCarouselList()
// },
// methods: {
//   // http://dashen-api.9tech.cn/api/v1/carousel/top/list
//   getCarouselList() {
//     axios.get('http://dashen-api.9tech.cn/api/v1/carousel/top/list').then(res=>{
//       console.log('vue----cat page  res === ', res)
//     })
//   }
// },

export default function Cat() {
  useEffect(()=>{
    getCarouselList()
  },[])
  const getCarouselList = () => {
    axios.get('http://dashen-api.9tech.cn/api/v1/carousel/top/list').then(res=>{
      console.log('react app 111111----cat page  res === ', res)
    })
  }
  return (
    <div>app1 --- Cat</div>
  )
}
